package com.itheima.blog.admin.service;

import com.itheima.blog.admin.dto.PageDto;
import com.itheima.blog.admin.domain.po.TBanner;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.blog.admin.vo.PageVO;
import com.itheima.blog.admin.vo.Result;
import com.itheima.common.domain.R;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * <p>
 * 轮播图设置表 服务类
 * </p>
 *
 * @author author
 * @since 2023-07-12
 */
public interface ITBannerService extends IService<TBanner> {

    R uploadFile(MultipartFile file) throws Exception;

    void deleteFile(List<Integer> ids) ;

    Result updateFile(MultipartFile file, Integer id) throws Exception;

    PageVO<TBanner> selectAll(PageDto pageDto);
}
